# -*- coding: utf-8 -*-
"""
author:码同学 极光
date:2023/10/22
desc: 
sample: 
"""
count = 0
while count < 3:
    name = input('请输入用户名')
    pwd = input("请输入密码")
    if name == "root" and pwd == 'root':
        print("登录成功")
        break
    else:
        count = count + 1
        print(f'登录失败，剩余重试次数{3 - count}')
